Skip to content

Conversation

yedayak
Copy link
Collaborator

@yedayak yedayak commented Feb 24, 2025

@yedayak
Copy link
Collaborator Author

yedayak commented Feb 24, 2025

The CI run failed because for some reason it didn't manage to delete the temp directory it creates in test_unit_load.py using shutil.rmtree in prepare_fixture_dir

@scop
Copy link
Owner

scop commented Apr 18, 2025

Thanks for working on this! I think I've seen the temp dir removal issue myself as well. Would be great if we could figure out a workaround. If we can't, we should allow it to fail only on macOS.

scop and others added 8 commits October 9, 2025 13:08
Also use venv instead of global install
brew/python doesn't like installing python packages globally:
```
error: externally-managed-environment
× This environment is externally managed
```
vipw seems to have -d as an option on macos now.
Partially reverts ccf7bf6 "test(dmesg,vipw): expect no options on macOS"
It seems there is some behaviour differences regarding the order
completions are returned in between linux and macos, specifically
regarding sorting of upper case and lowercase letters. Sorting them
ourselves in the tests makes it consistent.
There is a BSD licensed version of rsync at
https://github.com/kristapsdz/openrsync, and its what comes with macOS
On macOS we need sudo to delete them, maybe because they were created by
a different prcoess?
return str(tmpdir)
yield str(tmpdir)
if sys.platform == "darwin":
assert_bash_exec(bash, "sudo rm -rf %s/*" % tmpdir)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love running sudo in the test suite, but I couldn't find a another way to delete these files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants